//数据
const districtPeople = [
  { type: '洪山区', value: 38000 },
  { type: '江夏区', value: 33000 },
  { type: '汉南区', value: 43000 },
  { type: '蔡甸区', value: 41000 },
  { type: '黄陂区', value: 36000 },
]
const config = {
  xField: 'type',
  yField: 'value',
  seriesField: 'value',
  label: {
    position: 'top',
    style: {
      fill: '#fff',
      opacity: 0.6,
    },
  },
  color({ value }) {
    if (value > 40000) {
      return 'red'
    } else if (value > 35000) {
      return 'orange'
    } else {
      return 'green'
    }
  },
  height: 270,
  legend: false,
}
//图表配置项
export { districtPeople, config }
